Repository navigation
fix(oms-58): carry PR #2549 CLPC platform-profile fix for no-ACPI kernels - #39
Closed
allanclempe wants to merge 1 commit into
Closed
allanclempe wants to merge 1 commit into
allanclempe wants to merge 1 commit into
Conversation
…nels Distribution linux-aurora kernels build with # CONFIG_ACPI is not set. Because ACPI_PLATFORM_PROFILE sat inside `if ACPI` in drivers/acpi/Kconfig, drivers/Makefile entered acpi/ only with CONFIG_ACPI, and APPLE_CLPC used `select ACPI_PLATFORM_PROFILE if ACPI`, Kconfig dropped ACPI_PLATFORM_PROFILE and apple_clpc_probe() skipped devm_platform_profile_register(). On the J616c (2.3), apple-clpc binds with apple,high-power-mode and apple,low-power-frequency-max-mhz=2808 in DT, yet /sys/class/platform-profile never registers and powerprofilesctl falls back to PlatformDriver: placeholder. - Add patches/linux-pr2549-clpc-platform-profile-no-acpi.patch rebased with zero fuzz onto aurora-silicon/linux db6da7821954 from open upstream PR aurora-silicon/linux#2549 (4dfa5b665833, Diljit Singh) with human-only sign-off; verified clean with git apply --check and git am, and compiled into linux-aurora 7.3.0.aurora1-3.1. - Document the patch, base commit, and verification in patches/README.md. - Add read-only tools/clpc-platform-profile-check.sh and 40 host tests in tools/tests/clpc-platform-profile-check-test.sh covering kernel config, /sys/class/platform-profile, powerprofilesctl, and CLPC DT properties. - Record root cause, live 2.3 baseline, 3.1 vmlinux verification, and upstream PR #2549 status in JOURNEY.md section 9.103.
Owner
Author
|
Closing: already merged upstream in aurora-silicon/linux#3995 (which replaced aurora-silicon/linux#2549). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Carries and verifies the kernel fix for Apple CLPC platform profiles (
/sys/class/platform-profile, Low Power and High Power mode) being silently disabled on distributionlinux-aurorakernels built with# CONFIG_ACPI is not set.patches/linux-pr2549-clpc-platform-profile-no-acpi.patch, rebased cleanly with zero fuzz ontoaurora-silicon/linuxdb6da7821954from open upstream PRaurora-silicon/linux#2549(4dfa5b665833, Diljit Singh), keeping only the author's humanSigned-off-by:config ACPI_PLATFORM_PROFILEoutsideif ACPIindrivers/acpi/Kconfigacpi/platform_profile.oindrivers/Makefileunderifndef CONFIG_ACPIacpi_kobjcalls behind#ifdef CONFIG_ACPIviaplatform_profile_legacy_kobj()indrivers/acpi/platform_profile.cAPPLE_CLPCindrivers/soc/apple/Kconfigtoselect ACPI_PLATFORM_PROFILEunconditionallyCONFIG_ACPI_PLATFORM_PROFILE=yinarch/arm64/configs/asahi.configdb6da7821954, upstream PR#2549, and verification commands inpatches/README.md.tools/clpc-platform-profile-check.shand 40 host tests intools/tests/clpc-platform-profile-check-test.shverifying kernel config (plain and.gz),/sys/class/platform-profile/*/name|choices|profile,powerprofilesctl(PlatformDriver: platform_profilevsplaceholder), andapple-clpcdevice-tree properties (apple,high-power-mode,apple,low-power-frequency-max-mhz,apple,smc).2.3J616c baseline (# CONFIG_ACPI is not set,CONFIG_ACPI_PLATFORM_PROFILEabsent, missing/sys/class/platform-profile,PlatformDriver: placeholder, intact DT withapple,high-power-modeand2808MHz),linux-aurora 7.3.0.aurora1-3.1.config/vmlinuxsymbol verification (platform_profile_class,devm_platform_profile_register,apple_clpc_profile_set), and upstream PR#2549status inJOURNEY.mdsection9.103.tools/derive-j616c-imageuntouched; kernel pin promotion and module verification stay in OMS-51.Where to open upstream PR
aurora-silicon/linux: Already open asaurora-silicon/linux#2549("soc: apple: clpc: offer platform profiles in kernels without ACPI",DjDeveloperr, head4dfa5b665833). As of 2026-12-02 it has 9/9 CI checks passing, no conflicts onmain, and passing hardware rows on J714s and K114s; it awaits one approving review from Core or Omarchy Mac and cleanup of a commit trailer noted in review. No duplicate PR needed onaurora-silicon/linux—add a J616c hardware row after booting3.1(OMS-57) and help review it to merge.omacom/omarchy-pkgs(pkgbuilds/linux-aurora): Edge'slinux-aurora 7.3.0.aurora4-1(omacom/linux-auroraea21b9af9a4c) still hasselect ACPI_PLATFORM_PROFILE if ACPIand# CONFIG_ACPI is not set. Onceaurora-silicon/linux#2549merges, ask omacom to advancelinux-aurorapast that merge commit (or carrypatches/linux-pr2549-clpc-platform-profile-no-acpi.patchin the meantime).Test plan
git apply --checkandgit amofpatches/linux-pr2549-clpc-platform-profile-no-acpi.patchagainst pristineaurora-silicon/linuxdb6da7821954linux-aurora 7.3.0.aurora1-3.1.config(# CONFIG_ACPI is not set,CONFIG_ACPI_PLATFORM_PROFILE=y,CONFIG_APPLE_CLPC=y),CC drivers/acpi/platform_profile.o, andvmlinux/System.mapsymbols (platform_profile_class,platform_profile_init,platform_profile_register,devm_platform_profile_register,apple_clpc_profile_probe,apple_clpc_profile_get,apple_clpc_profile_set)bash tools/tests/clpc-platform-profile-check-test.sh(40 passed, including large gzipped config SIGPIPE guard, mock3.1state, unpatched2.3state, missing/malformed DT, exit-2 error paths, and patch fixture checks)bash tools/tests/gpu-stats-ring-check-test.sh(19 passed),omarchy-esp-generator-test.sh,select-speaker-volume-unlock-test.sh,touchid-probe-redact-test.sh(15 passed)bash -nontools/clpc-platform-profile-check.shand alltools/tests/*.shbash tools/clpc-platform-profile-check.sh --require-dtlive on J616c7.3.0-1-2.3-ARCH(confirmed exit 1 with expected baseline diagnostics and intact J616c DThigh_power_mode=present low_power_max_mhz=2808 smc=present) and against the built3.1.configwith mock sysfs/ppd + live J616c DT (confirmed exit 0)bash tools/clpc-platform-profile-check.sh --require-dtlive on J616c after bootinglinux-aurora 7.3.0.aurora1-3.1(OMS-57) and cyclepowerprofilesctl set power-saver|balanced|performanceSelf-review
Checked
git diff oms-50-gpu-stats-ring-tag32..HEAD(commit2f30551):parse_kconfig()scans the entire stream to EOF inawk(no earlyexiton pipes) and captures output via command substitution rather than process substitution so corrupt.gzconfigs fail with exit 2 and large compressed configs never trip SIGPIPE underset -euo pipefail.awkregexes (no{m,n}interval quantifiers), endian-independentod -An -v -t u1decoding for 4-byte DTu32properties, and explicitifguards underset -e.powerprofilesctlcheck catches bothPlatformDriver: placeholderand any missing/unbackedperformance,balanced, orpower-saverprofile entry.patches/linux-pr2549-clpc-platform-profile-no-acpi.patchuses standarda//b/prefixes, applies cleanly with zero fuzz todb6da7821954, and carries only the author's humanSigned-off-by.tools/derive-j616c-imageuntouched), andgit diff --checkclean on all non-patch files.